import ORM from '../../core/ORM';
import { emitError } from '../middlewares/emitError';
import { responseFilter } from '../middlewares/responseFilter';
import config from '../../../app.config';

const { ajaxBaseUrl, ajaxTimeout } = config;

export const app = new ORM({
  ajaxBaseUrl,
  ajaxTimeout
});

export const error = emitError();

export const resFilter = responseFilter('data');
